#include<stdio.h>
#include<conio.h>

int f(int a[])
{
	int X=0, Y=0,i,n;
	for(i=0;i<n-1;i++)
	     if(a[i]%2==0)
	     Y=Y+a[i];
	     else  X=X+a[i];
	return (X-Y);
}

main()
{
	int a[]={1,2,3,4};
	int n= sizeof(a)/sizeof(int);
    printf("%d", f(a));
   getch();
}
